﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataFrameworkAccess;

namespace Back.Xinkui.Common.Control.Region
{
    internal class RegionDataAccess
    {
        internal static List<ProvinceEntity> GetProvince()
        {
            DataCommand command = DataCommandManager.GetDataCommand("Region.GetProvince");
            return command.ExecuteEntityList<ProvinceEntity>();
        }

        internal static List<CityEntity> GetCity()
        {
            DataCommand command = DataCommandManager.GetDataCommand("Region.GetCity");
            return command.ExecuteEntityList<CityEntity>();
        }

        internal static List<CountryEntity> GetCountry()
        {
            DataCommand command = DataCommandManager.GetDataCommand("Region.GetCountry");
            return command.ExecuteEntityList<CountryEntity>();
        }
    }
}
